home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / danix201.zip / FGREP.1 < prev    next >
Text File  |  1994-01-16  |  1KB  |  46 lines

  1. FGREP(1)            Danix Utilities                  FGREP(1)
  2.  
  3. NAME
  4.     fgrep - search for a given string in files
  5.  
  6. SYNOPSIS
  7.     fgrep [ -bchilnsvx ] [ -e <string> ] [ -f <file> ] word files ...
  8.  
  9. DESCRIPTION
  10.     fgrep searches for a string in files or standard input.
  11.  
  12.     If no files are given, or a '-' is encountered in the file list, input
  13.     is taken from standard input.
  14.  
  15.  
  16.     -b  Each line is preceded by the block number on which it
  17.         was found.  This is sometimes useful in locating disk
  18.         block numbers by context.
  19.  
  20.     -c  Only a count of matching lines is printed.
  21.  
  22.     -e  Forces the next argument to be interpreted as a pattern.  Useful
  23.             if the pattern begins with - or /.
  24.  
  25.     -f  The list of strings is taken from the named file.
  26.  
  27.     -h  Do not print filenames.
  28.  
  29.     -i  The case of letters is ignored.
  30.  
  31.     -l  The names of files with matching lines are printed.
  32.  
  33.     -n  Matching lines are printed preceded by their line number in
  34.             the file
  35.  
  36.     -s  Silent mode.  Only error messages are printed.
  37.  
  38.     -v  Print lines not matching.
  39.  
  40.     -x  Exact matches only (Entire line must be matched).
  41.  
  42.  
  43. DIAGNOSTICS
  44.     If a match is found, the exit status is 0.  If no match is found,
  45.     the status is 1.  In the case of an error, the status is 2.
  46.